﻿ALTER TABLE [dbo].[Tasks]
    ADD CONSTRAINT [FK_Tasks_Tasks] FOREIGN KEY ([ParentId]) REFERENCES [dbo].[Tasks] ([Id]) ON DELETE NO ACTION ON UPDATE NO ACTION;

